package com.github.icloudpay.pay.core.mapper;

import java.util.Map;

import com.github.icloudpay.pay.core.entity.PayOrder;

import tk.mybatis.mapper.common.Mapper;

/**
 * 支付订单表
 * 
 * @author hexufeng
 * @date 2018-06-05 14:17:16
 */
@org.apache.ibatis.annotations.Mapper
public interface PayOrderMapper extends Mapper<PayOrder> {
	
	/**
	 * 订单数据
	 * @param map
	 * @return
	 */
	Map<String, Object> queryDataCount(Map<String, Object> map);
	
	/**
	 * 设备订单数据
	 * @param map
	 * @return
	 */
	Map<String, Object> queryDataCountWithDevice(Map<String, Object> map);
	
	/**
	 * 查询最新一条不超过一小时的订单
	 * @param map
	 * @return
	 */
	PayOrder queryLastOrderByAccount(PayOrder payOrder);
}
